package base.demo;

public class ForDemo {

    public static void main(String[] args) {

        arrayDemo();
    }


    public static void plusTrains(){
        int[]array={14,12,15,13,11,16};
        int account=1;
        int index=1;
        System.out.println(array[account++] + "***"+ array[++index]);
    }

  public static void arrayDemo(){
        int[]array={14,12,15,13,11,16};//len = 6;
        int account=1;
        int index=1;

//        System.out.println(array[account++] + "***"+ array[++index]);


//      int middle = (int) Math.floor(8 / 2);//4
      int middle = (int) Math.floor(7 / 2);//3
//      int middle = (int) Math.floor(6 / 2);//3
//      int middle = (int) Math.floor(5 / 2);//2

      System.out.println(middle);
  }


}
